list1=[]
list1.append(1)
print(list1)
list1.append(1)
list1[0]=1
list1[1]=2
print(list1)
list2=[1,2,3]
for i in list2:
    print(f"{i}"+" ",end="")
print(" ")
list2.insert(0,0)
print(list2)
list2.extend([4,5])
print(list2)
list3 = [8,7,9,6]
print(list3.sort())
list4=sorted(list3)
print(list4)
print(list3)
list5=[4,7,2,3,5,1]
list5.sort(reverse=True)
print(list5)
print(list5.remove(7))
print(list5)
#remove指定pop尾部clear清空
list6=[i for i in range(1,10)if i%2!=0]
print(list6)